package com.atguigu.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * @Author hg
 * @CreatedTime 2020-10-04-21:56
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) // 不配置数据源，也就是不连接数据库。否则有可能报错的。
@ComponentScan(basePackages = {"com.atguigu"}) // 这里仍然需要使用swagger
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class, args);
    }
}
